<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>机柜3D可视化演示</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            overflow: hidden;
        }
        #app {
            position: relative;
            width: 100vw;
            height: 100vh;
        }
        #renderCanvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            outline: none;
        }
        #info {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(112, 112, 112, 0.7);
            color: white;
            padding: 10px;
            border-radius: 5px;
            font-family: Arial, sans-serif;
            font-size: 14px;
            z-index: 10;
        }
        #controls {
            position: absolute;
            bottom: 10px;
            left: 10px;
            display: flex;
            gap: 10px;
        }
        button {
            background-color: #4CAF50;
            border: none;
            color: white;
            padding: 8px 15px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 14px;
            margin: 4px 2px;
            cursor: pointer;
            border-radius: 4px;
        }
        button:hover {
            background-color: #3e8e41;
        }
    </style>
</head>
<body>
    <div id="app">
        <div id="renderCanvas"></div>
        <div id="info">点击机柜内的服务器查看详情</div>
        <div id="controls">
            <button id="toggleDoorBtn">打开/关闭机柜门</button>
            <button id="resetViewBtn">重置视图</button>
        </div>
    </div>
    <script type="module" src="./main.js"></script>
</body>
</html>
